package cn.lili.modules.permission.entity.vo;

import cn.lili.common.utils.BeanUtil;
import cn.lili.modules.member.entity.dos.User;
import cn.lili.modules.member.entity.vo.UserVO;
import cn.lili.modules.permission.entity.dos.Menu;
import cn.lili.modules.permission.entity.dos.Role;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 管理员VO
 *
 * @author Chopper
 * @since 2020-11-22 09:17
 */
@Data
public class AdminUserVO extends UserVO {

    private static final long serialVersionUID = -2378384199695839312L;

    @ApiModelProperty(value = "是否是超级管理员 超级管理员/普通管理员")
    private Boolean isSuper = false;

    @ApiModelProperty(value = "所属部门ID")
    private String departmentId;

    @ApiModelProperty(value = "所属部门名称")
    private String departmentTitle;


    @ApiModelProperty(value = "角色集合")
    private String roleIds;

    public AdminUserVO(User user) {
        super(user);
        BeanUtil.copyProperties(user, this);
    }

    public AdminUserVO() {

    }

}
